package Review05;

public class Dog extends Pet{
    private String strain;

    public Dog() {
    }

    public Dog(String name, int health, int love, String strain) {
        super(name, health, love);
        this.strain = strain;
    }

    @Override
    public void print() {
        super.print();
        System.out.println("品种"+this.strain);
    }

    @Override
    public void gotoHospital() {
        System.out.println("带狗狗去医院");

    }
    public void play(){
        System.out.println("和狗玩接飞盘");
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }
}
